#include<bits/stdc++.h>
using namespace std;
int main(){
    freopen("detect.in","r",stdin);
    freopen("detect.out","w",stdout);
    int t,n,m,x,y;
    int a[30][30];
    int b[30];
    cin>>t;
    cin>>n>>m>>x>>y;
    for(int i=0;i<3;i++)
        for(int j=0;j<n;j++)
            cin>>a[i][j];
    for(int i=0;i<m;i++) cin>>b[i];
    cout<<'3'<<' '<<'3';
    return 0;
}
